home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1998 June
/
SGI Freeware 1998 June.iso
/
dist
/
fw_UMINNgopher.idb
/
usr
/
freeware
/
src
/
gopher_1.12
/
Makefile.z
/
Makefile
Wrap
Makefile
|
1997-09-09
|
3KB
|
89 lines
#********************************************************************
# $Author: drich $
# $Revision: 1.1 $
# $Date: 1995/10/03 04:07:21 $
# $Source: /proj/freeware1.0/gopher1.12/src/RCS/Makefile,v $
# $State: Exp $
#
# Paul Lindner, University of Minnesota CIS.
#
# Copyright 1991, 1992 by the Regents of the University of Minnesota
# see the file "Copyright" in the distribution for conditions of use.
#********************************************************************
# MODULE: Makefile
# Makefile for entire gopher distribution.
#*********************************************************************
# Revision History:
# $Log: Makefile,v $
# Revision 1.1 1995/10/03 04:07:21 drich
# gopher 1.2 check-in
#
# Revision 1.3 1992/12/29 23:30:22 lindner
# Removed all references to fanout and mindexd, it's in gopherd now..
#
# Revision 1.2 1992/12/11 19:32:00 lindner
# make tar now uses gnu tar, ignores RCS directorys and symbolic links
#
# Revision 1.1 1992/12/11 19:01:43 lindner
# Gopher1.1 Release
#
#********************************************************************/
include Makefile.config
all: objects server client
server: gopherd/gopherd
client: gopher/gopher
objects: object/libgopher.a
gopherd/gopherd: objects
@echo "Making server"
@if [ -f /sdmach -a -d ./ir ]; then \
(echo "Making server with NeXT and WAIS searching";\
cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH -DWAISSEARCH" nextwais);\
elif [ -f /sdmach ]; then \
(echo "Making server with NeXT searching";\
cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH" next); \
elif [ -d ./ir ]; then \
(echo "Making server with WAIS searching";\
cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DWAISSEARCH" wais); \
else (echo "Making data server"; cd gopherd; $(MAKE) $(MFLAGS) none) \
fi
gopher/gopher: object/libgopher.a
@echo "Making client"
(cd gopher; $(MAKE) $(MFLAGS))
object/libgopher.a:
@echo "Making Objects"
(cd object; $(MAKE) $(MFLAGS))
install:
(cd gopher; $(MAKE) $(MFLAGS) install);
(cd gopherd; $(MAKE) $(MFLAGS) install);
(cd doc; $(MAKE) $(MFLAGS) install)
clean:
(cd gopher; $(MAKE) $(MFLAGS) clean)
(cd gopherd; $(MAKE) $(MFLAGS) clean)
(cd object; $(MAKE) $(MFLAGS) clean)
(cd doc; $(MAKE) $(MFLAGS) clean)
-rm -f *~
-rm -f "examples/Sample Directory/wais-index/index."*
spotless: clean
-rm -f *~
tar: spotless Makefile.config.dist
-rm -f ir ui bin MANIFEST
cp Makefile.config.dist Makefile.config
chmod +w Makefile.config
touch MANIFEST
HERE=`basename $$PWD`; \
echo $$HERE ; \
cd .. ; \
find $$HERE -type f -print |grep -v '.o$$' |grep -v '~$$' >$$HERE/MANIFEST ; \
/usr/gnu/bin/tar -T $$HERE/MANIFEST -czvf $$HERE.tar.Z